<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDemandAreaTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('demand_area', function(Blueprint $table) {
            $table->increments('id')->comment('自增id');
            $table->integer('p_id')->default(0)->comment('父级id');
            $table->string('name')->nullable()->comment('名称');
            $table->string('desc')->nullable()->comment('描述');
            $table->integer('status')->default(0)->comment('状态');
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
